# 使用 Miniconda3 最新版本作为基础镜像
FROM continuumio/miniconda3:latest

# 设置时区
ENV TZ=Asia/Shanghai

# 创建工作目录
WORKDIR /workspace

# 复制环境文件
COPY environment.yml .

# 创建 conda 环境
RUN conda env create -f environment.yml && \
    conda clean -afy

# 激活环境
SHELL ["conda", "run", "-n", "datascience", "/bin/bash", "-c"]

# 设置默认命令，激活环境并启动 bash
ENTRYPOINT ["conda", "run", "-n", "datascience", "/bin/bash"] 